package com.study.csc.a03threadcase3;

import java.util.concurrent.Callable;

/**
 * @author csc
 * @Date 2023/10/18 10:48
 * @PackageName:com.study.csc.a0threadcase3
 * @ClassName: MyCallable
 * @Description: TODO
 * @Version 1.0
 */
public class MyCallable  implements Callable<Integer> {


    @Override
    public Integer call() throws Exception {
        //求1到100的和
        int sum = 0;
        for (int i = 0; i <=100 ; i++) {
            sum = sum+i;
        }
        return sum;
    }


}
